#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2024/4/29 15:38
# @File    : test.py
# @Description : -i http://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn



import time
import os

"""

打包静态文件到exe中   
打包下来仅3mb
nuitka test.py --include-data-files=./static/*=static/  --mingw64 --standalone --show-progress --show-memory  --onefile

"""


try:
    path = os.path.join(os.path.dirname(__file__), 'static', '1.png')
    print(path)
    with open(path) as f:
        print("ok")
except Exception as e:
    print(e.args)
    print("error")
[(print(f"倒计时{i}秒退出"), time.sleep(1)) for i in range(5)]